/*
 * @description: 描述内容
  useRef
 */


import { useRef,useEffect } from "react"
function APP(){
const divRef=useRef(null);
console.log(divRef.current)  //打印为null
useEffect(()=>{
    console.log(divRef.current)      //打印为divdon元素的实例
    console.log(divRef)
},[])

return (<div ref={divRef}>
    6666
</div>)
}

export default APP